{{? it['search_fields'] }}
<div class="qlist-filter shadow mg-10 pd-t-5">
	{{ for(var fi in it['search_fields']){ f=it['search_fields'][fi]; }}
		{{ if(typeof it['fields'][f]=="undefined"){continue;} }}
		{{? ['text',''].indexOf(it['fields'][f].type)>-1 }}
			<div class="filter mb-5">
				<label>{{=it['fields'][f].title}}</label> <input class="qlist-filter-item" type="text" name="{{=f}}">
			</div>
		{{?}}

		{{? ['radio','select'].indexOf(it['fields'][f].type)>-1 }}
			<div class="filter mb-5">
				<label>{{=it['fields'][f].title}}</label>
				<select  name="{{=f}}" class="qlist-filter-item">
					<option value="">请选择</option>
					{{ for(var i in it['fields'][f].options){ }}
						<option value="{{=it['fields'][f].options[i].value}}">{{=it['fields'][f].options[i].title}}</option>
					{{ } }}
				</select>
			</div>
		{{?}}

		{{? ['switch'].indexOf(it['fields'][f].type)>-1 }}
			<div class="filter mb-5">
				<label>{{=it['fields'][f].title}}</label>
				<select  name="{{=f}}" class="qlist-filter-item">
					<option value="">请选择</option>
					<option value="1">是/正常</option>
					<option value="0">否/隐藏</option>
				</select>
			</div>
		{{?}}

	{{ } }}
</div>
{{?}}

<div class="qlist-extend mg-10"> 
	<div class="inline-block">
		<a href="#" class="qlist-btn bg-yellow white" @click="load('{{=it.table}}')">配置</a>
		<a href="#" class="qlist-btn bg-color white" @click="QList.addNewData()">新增</a>
	</div> 
	<div class="qlist-page inline-block"></div> 
</div>

<table class="qlist-table table-{{=it.table}}">
	<thead>
	{{ for(var field in it['fields']){ }}

	<th>{{=it['fields'][field].title}}</th>

	{{ } }}
	<th class="text-right pd-r-15">操作</th>
	</thead>
	<tbody></tbody>
</table>
